package com.goldgov.commylog.service;

import com.goldgov.kcloud.core.service.Query;

public class StatisticsCommylogQuery extends Query<StatisticsCommylogBean> {
	
	private String searchOrganizationId;//组织机构id
	private String searchStartDate;
	private String searchEndDate;
	private Boolean searchChilderOrg;//是否包含下级单位
	private int organizationLevel;//部门级别
	private String searchTreePath;
	private Integer serarchNextNum;//子组织下的数量
	private Integer searchOrganizationType;//机构类别  1市 2工委  3县 
	private Integer searchOrderType;//排序字段 1按组织 2按完成度/或数量
	public String getSearchOrganizationId() {
		return searchOrganizationId;
	}

	public void setSearchOrganizationId(String searchOrganizationId) {
		this.searchOrganizationId = searchOrganizationId;
	}

	public Boolean getSearchChilderOrg() {
		return searchChilderOrg;
	}

	public void setSearchChilderOrg(Boolean searchChilderOrg) {
		this.searchChilderOrg = searchChilderOrg;
	}

	/**
	 * @return the searchStartDate
	 */
	public String getSearchStartDate() {
		return searchStartDate;
	}

	/**
	 * @param searchStartDate the searchStartDate to set
	 */
	public void setSearchStartDate(String searchStartDate) {
		this.searchStartDate = searchStartDate;
	}

	/**
	 * @return the searchEndDate
	 */
	public String getSearchEndDate() {
		return searchEndDate;
	}

	/**
	 * @param searchEndDate the searchEndDate to set
	 */
	public void setSearchEndDate(String searchEndDate) {
		this.searchEndDate = searchEndDate;
	}

	/**
	 * @return the searchTreePath
	 */
	public String getSearchTreePath() {
		return searchTreePath;
	}

	/**
	 * @param searchTreePath the searchTreePath to set
	 */
	public void setSearchTreePath(String searchTreePath) {
		this.searchTreePath = searchTreePath;
	}

	/**
	 * @return the organizationLevel
	 */
	public int getOrganizationLevel() {
		if(searchTreePath!=null&&!searchTreePath.equals("")) {
			//因为要获取下级机构,所以级别加1
			organizationLevel=searchTreePath.split("/").length;
		}
		return organizationLevel;
	}

	/**
	 * @param organizationLevel the organizationLevel to set
	 */
	public void setOrganizationLevel(int organizationLevel) {
		this.organizationLevel = organizationLevel;
	}

	public Integer getSerarchNextNum() {
		return serarchNextNum;
	}

	public void setSerarchNextNum(Integer serarchNextNum) {
		this.serarchNextNum = serarchNextNum;
	}

	public Integer getSearchOrganizationType() {
		return searchOrganizationType;
	}

	public void setSearchOrganizationType(Integer searchOrganizationType) {
		this.searchOrganizationType = searchOrganizationType;
	}

	public Integer getSearchOrderType() {
		return searchOrderType;
	}

	public void setSearchOrderType(Integer searchOrderType) {
		this.searchOrderType = searchOrderType;
	}
	
	
}